<?php

use Hyperf\Database\Schema\Schema;
use Hyperf\Database\Schema\Blueprint;
use Hyperf\Database\Migrations\Migration;

return new class extends Migration
{
    /**
     * Run the migrations.
     */
    public function up(): void
    {
        Schema::create('rd_device_broadcast_server', function (Blueprint $table) {
            $table->comment('ip广播服务器');
            $table->bigIncrements('id');
            $table->string('name', 255)->comment('名称');
            $table->string('link', 255)->comment('链接地址');
            $table->string('username', 255)->nullable()->comment('用户名');
            $table->string('password', 255)->nullable()->comment('密码');
            $table->string('auth', 255)->nullable()->comment('认证');
            $table->string('remarks', 255)->nullable()->comment('备注');
            $table->timestamps();
            $table->authorBy();
            $table->softDeletes();
        });
    }

    /**
     * Reverse the migrations.
     */
    public function down(): void
    {
        Schema::dropIfExists('rd_device_broadcast_server');
    }
};
